// 示例数据文件 - 用于地理专题图
export const sampleData = {
  // 城市人口数据
  cityPopulation: [
    { name: '北京', lat: 39.9042, lng: 116.4074, population: 2154, area: 16410 },
    { name: '上海', lat: 31.2304, lng: 121.4737, population: 2428, area: 6340 },
    { name: '广州', lat: 23.1291, lng: 113.2644, population: 1868, area: 7434 },
    { name: '深圳', lat: 22.5431, lng: 114.0579, population: 1756, area: 1997 },
    { name: '成都', lat: 30.6724, lng: 104.0665, population: 2094, area: 14335 },
    { name: '重庆', lat: 29.5630, lng: 106.5516, population: 3212, area: 82403 },
    { name: '天津', lat: 39.3434, lng: 117.3616, population: 1387, area: 11966 },
    { name: '武汉', lat: 30.5928, lng: 114.3055, population: 1364, area: 8569 },
    { name: '西安', lat: 34.3416, lng: 108.9398, population: 1295, area: 10108 },
    { name: '苏州', lat: 31.2989, lng: 120.5853, population: 1275, area: 8657 }
  ],

  // 省份GDP数据
  provinceGDP: [
    { name: '广东', lat: 23.3790, lng: 113.7633, gdp: 129118, growth: 5.2 },
    { name: '江苏', lat: 32.0603, lng: 118.7969, gdp: 122875, growth: 5.8 },
    { name: '山东', lat: 36.3427, lng: 118.1498, gdp: 87435, growth: 5.5 },
    { name: '浙江', lat: 30.2741, lng: 120.1551, gdp: 77715, growth: 5.5 },
    { name: '河南', lat: 34.7466, lng: 113.6253, gdp: 61346, growth: 5.1 },
    { name: '四川', lat: 30.6171, lng: 104.0648, gdp: 56749, growth: 6.0 },
    { name: '福建', lat: 26.0745, lng: 119.3062, gdp: 53109, growth: 4.5 },
    { name: '湖北', lat: 30.5449, lng: 114.2734, gdp: 50804, growth: 5.0 },
    { name: '湖南', lat: 28.2282, lng: 112.9388, gdp: 48670, growth: 4.2 },
    { name: '上海', lat: 31.2304, lng: 121.4737, gdp: 47689, growth: 5.0 }
  ],

  // 环境污染数据
  airQuality: [
    { name: '北京', lat: 39.9042, lng: 116.4074, pm25: 45, aqi: 120, level: '轻度污染' },
    { name: '上海', lat: 31.2304, lng: 121.4737, pm25: 38, aqi: 108, level: '轻度污染' },
    { name: '广州', lat: 23.1291, lng: 113.2644, pm25: 35, aqi: 95, level: '良' },
    { name: '深圳', lat: 22.5431, lng: 114.0579, pm25: 28, aqi: 78, level: '良' },
    { name: '成都', lat: 30.6724, lng: 104.0665, pm25: 52, aqi: 135, level: '轻度污染' },
    { name: '重庆', lat: 29.5630, lng: 106.5516, pm25: 48, aqi: 128, level: '轻度污染' },
    { name: '天津', lat: 39.3434, lng: 117.3616, pm25: 55, aqi: 142, level: '轻度污染' },
    { name: '武汉', lat: 30.5928, lng: 114.3055, pm25: 42, aqi: 115, level: '轻度污染' },
    { name: '西安', lat: 34.3416, lng: 108.9398, pm25: 58, aqi: 148, level: '轻度污染' },
    { name: '杭州', lat: 30.2741, lng: 120.1551, pm25: 40, aqi: 112, level: '轻度污染' }
  ],

  // 交通流量数据
  trafficFlow: [
    { name: '京沪高速', coordinates: [[39.9042, 116.4074], [31.2304, 121.4737]], flow: 8500, capacity: 12000 },
    { name: '京港澳高速', coordinates: [[39.9042, 116.4074], [23.1291, 113.2644]], flow: 7200, capacity: 10000 },
    { name: '沪蓉高速', coordinates: [[31.2304, 121.4737], [30.6724, 104.0665]], flow: 6800, capacity: 9500 },
    { name: '京昆高速', coordinates: [[39.9042, 116.4074], [25.0438, 102.7183]], flow: 5900, capacity: 8000 }
  ],

  // 行政区划数据
  administrativeRegions: [
    {
      name: '华北地区',
      coordinates: [
        [40.1776, 116.4074], [39.9042, 117.3616], [38.0428, 114.5149], 
        [37.8736, 112.5489], [40.8176, 111.7651], [40.1776, 116.4074]
      ],
      provinces: ['北京', '天津', '河北', '山西', '内蒙古'],
      color: '#FF6B6B'
    },
    {
      name: '华东地区',
      coordinates: [
        [32.0603, 118.7969], [31.2304, 121.4737], [30.2741, 120.1551],
        [26.0745, 119.3062], [28.6765, 115.9918], [34.7466, 113.6253],
        [36.3427, 118.1498], [32.0603, 118.7969]
      ],
      provinces: ['上海', '江苏', '浙江', '安徽', '福建', '江西', '山东'],
      color: '#4ECDC4'
    },
    {
      name: '华南地区',
      coordinates: [
        [23.3790, 113.7633], [22.5431, 114.0579], [20.0444, 110.1989],
        [23.6978, 108.3669], [23.3790, 113.7633]
      ],
      provinces: ['广东', '广西', '海南'],
      color: '#45B7D1'
    }
  ],

  // 温度分布数据
  temperatureData: [
    { name: '哈尔滨', lat: 45.8038, lng: 126.5349, temp: -15, season: '冬季' },
    { name: '北京', lat: 39.9042, lng: 116.4074, temp: 2, season: '冬季' },
    { name: '上海', lat: 31.2304, lng: 121.4737, temp: 8, season: '冬季' },
    { name: '广州', lat: 23.1291, lng: 113.2644, temp: 18, season: '冬季' },
    { name: '海口', lat: 20.0444, lng: 110.1989, temp: 25, season: '冬季' },
    { name: '昆明', lat: 25.0438, lng: 102.7183, temp: 15, season: '冬季' },
    { name: '拉萨', lat: 29.6625, lng: 91.1146, temp: -5, season: '冬季' },
    { name: '乌鲁木齐', lat: 43.8256, lng: 87.6168, temp: -10, season: '冬季' }
  ]
};

// 配置选项
export const mapConfigs = {
  // 比例尺选项
  scales: [
    { label: '1:500,000', value: 500000 },
    { label: '1:1,000,000', value: 1000000 },
    { label: '1:2,000,000', value: 2000000 },
    { label: '1:5,000,000', value: 5000000 },
    { label: '1:10,000,000', value: 10000000 }
  ],

  // 投影方式
  projections: [
    { label: 'Web墨卡托', value: 'webmercator' },
    { label: '高斯-克吕格', value: 'gauss' },
    { label: '兰伯特等积', value: 'lambert' },
    { label: '阿尔伯斯等积', value: 'albers' }
  ],

  // 专题图类型
  thematicTypes: [
    { label: '点符号图', value: 'point', icon: '🔵' },
    { label: '分级统计图', value: 'choropleth', icon: '🗺️' },
    { label: '等值线图', value: 'isoline', icon: '📈' },
    { label: '流向图', value: 'flow', icon: '➡️' },
    { label: '热力图', value: 'heatmap', icon: '🔥' },
    { label: '三维柱状图', value: '3dbar', icon: '📊' }
  ],

  // 颜色方案
  colorSchemes: [
    { 
      name: '蓝色系', 
      colors: ['#E3F2FD', '#BBDEFB', '#90CAF9', '#42A5F5', '#1E88E5', '#1565C0'],
      value: 'blue'
    },
    { 
      name: '红色系', 
      colors: ['#FFEBEE', '#FFCDD2', '#EF9A9A', '#E57373', '#EF5350', '#D32F2F'],
      value: 'red'
    },
    { 
      name: '绿色系', 
      colors: ['#E8F5E8', '#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#43A047'],
      value: 'green'
    },
    { 
      name: '紫色系', 
      colors: ['#F3E5F5', '#E1BEE7', '#CE93D8', '#BA68C8', '#AB47BC', '#8E24AA'],
      value: 'purple'
    },
    { 
      name: '彩虹色', 
      colors: ['#FF0000', '#FF7F00', '#FFFF00', '#00FF00', '#0000FF', '#4B0082'],
      value: 'rainbow'
    }
  ]
};

// 默认地图配置
export const defaultMapConfig = {
  center: [35.8617, 104.1954], // 中国中心点
  zoom: 5,
  showGrid: true,
  showScale: true,
  projection: 'webmercator',
  baseLayer: 'amap' // 高德地图
}; 